package lab02.Test12;

/**
 * Created by Administrator on 2017/10/19.
 */
public class Circle extends Shape {
    double PI = 3.14;
    @Override
    public void area(double radius,double PI) {
        area=PI * radius * radius;
        System.out.println("面积为："+area);
    }

    @Override
    public void perimeter(double radius, double PI) {
        perimeter = 2 * PI * radius;
        System.out.println("周长为：" + perimeter);
    }
}
